package com.tool.builder.BuildHelper;

import com.tool.bean.Constants;
import com.tool.utils.DateUtils;
import java.io.BufferedWriter;
import java.util.Date;

/**
 * 创建注解
 */
public class BuildComment {

    public static void createClassComment(BufferedWriter bw, String classComment) throws Exception{
        bw.write("/**");
        bw.newLine();
        bw.write(" * @Author: " + Constants.AUTHOR_NAME);
        bw.newLine();
        bw.write(" * @Description: " + classComment);
        bw.newLine();
        bw.write(" * @Date: " + DateUtils.format(new Date(), DateUtils._YYYYMMDD));
        bw.newLine();
        bw.write(" */");
    }

    public static void createFieldComment(BufferedWriter bw, String classComment) throws Exception{
        bw.write("\t/**");
        bw.newLine();
        bw.write("\t * " + classComment);
        bw.newLine();
        bw.write("\t */");
        bw.newLine();
    }

    public static void createMethodComment() {

    }
}
